home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Adobe Graphics & Publishing SDK 1996 December
/
Adobe Graphics & Publishing SDK 1996 December.iso
/
mac
/
After Effects 3.1 SDK Mac
/
Examples
/
I⁄O Samples
/
Filmstrip FXIF
/
FILM_Main.c
< prev
next >
Wrap
Text File
|
1996-06-04
|
3KB
|
165 lines
/**
FILM_Main.c
Part of the Adobe After Effects 3.1 SDK
Copyright (c)1993-96, Adobe Systems Inc, All Rights Reserved.
Revision History
1.0, created by dmw
**/
#include "PIFormatT.h"
#include "Film.h"
#include <A4Stuff.h>
pascal void main (
short selector,
Ptr stuff,
long *data,
short *result )
{
FormatRecordPtr fp;
FormatRecordTPtr ftp;
long real_selector;
EnterCodeResource();
fp = (FormatRecordPtr)stuff;
ftp = (FormatRecordTPtr)(stuff - sizeof(TimeExtension));
real_selector = ftp->time_ext.time_selector;
if (real_selector) {
selector = real_selector;
}
*result = 0;
switch (selector) {
case 0:
SysBeep(1);
SysBeep(1);
break;
case formatSelectorReadPrepare:
ReadPrepare(stuff, data, result);
break;
case formatSelectorReadStart:
ReadStart(stuff, data, result);
break;
case formatSelectorReadContinue:
ReadContinue(stuff, data, result);
break;
case formatSelectorReadFinish:
ReadFinish(stuff, data, result);
break;
case formatSelectorOptionsPrepare:
OptionsPrepare(stuff, data, result);
break;
case formatSelectorOptionsStart:
OptionsStart(stuff, data, result);
break;
case formatSelectorOptionsContinue:
OptionsContinue(stuff, data, result);
break;
case formatSelectorOptionsFinish:
OptionsFinish(stuff, data, result);
break;
case formatSelectorEstimatePrepare:
EstimatePrepare(stuff, data, result);
break;
case formatSelectorEstimateStart:
EstimateStart(stuff, data, result);
break;
case formatSelectorEstimateContinue:
EstimateContinue(stuff, data, result);
break;
case formatSelectorEstimateFinish:
EstimateFinish(stuff, data, result);
break;
case formatSelectorWritePrepare:
WritePrepare(stuff, data, result);
break;
case formatSelectorWriteStart:
WriteStart(stuff, data, result);
break;
case formatSelectorWriteContinue:
WriteContinue(stuff, data, result);
break;
case formatSelectorWriteFinish:
WriteFinish(stuff, data, result);
break;
case formatSelectorSetupPrepare:
case formatSelectorSetupStart:
case formatSelectorSetupContinue:
case formatSelectorSetupFinish:
case formatSelectorSetdownPrepare:
case formatSelectorSetdownStart:
case formatSelectorSetdownContinue:
case formatSelectorSetdownFinish:
break;
case formatSelectorStartAddPrepare:
StartAddPrepare(stuff, data, result);
break;
case formatSelectorStartAddStart:
StartAddStart(stuff, data, result);
break;
case formatSelectorStartAddContinue:
StartAddContinue(stuff, data, result);
break;
case formatSelectorStartAddFinish:
StartAddFinish(stuff, data, result);
break;
case formatSelectorEndAddPrepare:
EndAddPrepare(stuff, data, result);
break;
case formatSelectorEndAddStart:
EndAddStart(stuff, data, result);
break;
case formatSelectorEndAddContinue:
EndAddContinue(stuff, data, result);
break;
case formatSelectorEndAddFinish:
EndAddFinish(stuff, data, result);
break;
default:
DEBUG_STR("\pBad selector");
*result = -108;
}
ExitCodeResource();
}